#ifndef ROBAKNCURSESSRC_H_
#define ROBAKNCURSESSRC_H_

#include <menu.h>
#include <stdlib.h>
#include <string.h>
#include <curses.h>
#include <form.h>
#include "SnakeSegment.h"

struct _AppData
{
	WINDOW * main_win;
	MENU * main_menu;
	FORM *main_form;
	ITEM ** menu_items;
	Direction last_move;
	int client_mode;
}typedef AppData;


typedef union semun{
	int val;
	struct semid_ds *buf;
	ushort * array;
};

void rk_show_main_menu(AppData *data);

void rk_hide_main_menu(AppData *data);

void rk_show_main_ip_form(AppData *data);

void rk_hide_main_ip_form(AppData *data);

void rk_execute_connection(AppData *data, char * ip, char * player_name);
#endif /*ROBAKNCURSESSRC_H_*/
